﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
</head>
<body>

    <div ng-app="myApp" ng-controller="myCtrl">
        <p>我的第一个表达式：{{5+5}}</p>

        名：<input type="text" ng-model="firstName" /><br />
        姓：<input type="text" ng-model="lastName" /><br />
       <p></p>
        姓名：{{firstName+" " +lastName}}

    </div>

    <script type="text/javascript" src="Scripts/angular.js"></script>

    <script type="text/javascript">
        var app = angular.module('myApp', []);
        app.controller('myCtrl', function ($scope) {
            $scope.firstName = 'John';
            $scope.lastName = 'Doe';
        });

    </script>
</body>
</html>